#/*****************************************************************************
#* Keppe Messenger (KMP) Keppe Project-Team User Messaging System
#* Copyright (C) 2013-2014 Keppe Project-Team
#*
#* This program is free software: you can redistribute it and/or modify
#* it under the terms of the GNU General Public License as published by
#* the Free Software Foundation, either version 3 of the License, or
#* (at your option) any later version.
#*
#* This program is distributed in the hope that it will be useful,
#* but WITHOUT ANY WARRANTY; without even the implied warranty of
#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#* GNU General Public License for more details.
#*
#* You should have received a copy of the GNU General Public License
#* along with this program.  If not, see <http://www.gnu.org/licenses/>.
#*****************************************************************************/

QT          += core gui network multimedia widgets
android: QT += androidextras

TARGET = KeppeMessengerAndroid
DEPLOYMENT.display_name = Keppe Messenger
VERSION = 1.0.0.20
TEMPLATE = app

isEqual(QT_MAJOR_VERSION, 4): DEFINES += "QT4=0x001"
isEqual(QT_MAJOR_VERSION, 5): DEFINES += "QT5=0x001"
unix: DEFINES += "UNIX=0x001"
android: DEFINES += "SYS_ANDROID"

SOURCES += main.cpp \
    frmChangePassword.cpp \
    frmChat.cpp \
    frmContactRequests.cpp \
    frmLogin.cpp \
    frmMenu.cpp \
    frmProfile.cpp \
    KTextBrowser.cpp \
    KCheckBox.cpp \
    KLabel.cpp \
    KListWidget.cpp

HEADERS  += frmChangePassword.h \
    frmChat.h \
    frmContactRequests.h \
    frmLogin.h \
    frmMenu.h \
    frmProfile.h \
    KTextBrowser.h \
    KCheckBox.h \
    KLabel.h \
    KListWidget.h

FORMS    += frmChangePassword.ui \
    frmChat.ui \
    frmContactRequests.ui \
    frmLogin.ui \
    frmMenu.ui \
    frmProfile.ui \
    KMessageBox.ui \
    KCheckBox.ui

ICON = km48.svg

CONFIG += mobility
MOBILITY = 

RESOURCES += \
    res.qrc

OTHER_FILES += KTextBrowser \
    KMessageBox \
    android-src/AndroidManifest.xml \
    android-src/res/drawable-hdpi/icon.png \
    android-src/res/drawable-ldpi/icon.png \
    android-src/res/drawable-mdpi/icon.png \
    android-src/res/values/strings.xml \
    android-src/src/org/keppe/msg/KeppeMessenger.java

INCLUDEPATH += ../include
unix: LIBS += -L$$OUT_PWD/../KMsgFw -lkmsgfw

ANDROID_EXTRA_LIBS = $$OUT_PWD/../KMsgFw/libkmsgfw.so

ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android-src
